{% extends "generic/_list.html" %}


                        {% block list_table %}
                            <table class="table table-striped table-bordered table-hover ">
                                <thead>
                                <tr>
                                    <th width="20"><input type="checkbox" id="CheckedAll"></th>
                                    <th>主机名</th>
                                    <th>管理IP</th>
                                    <th>设备状态</th>
                                    <th>最后修改</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>

                                {% for object in object_list %}

                                    <tr id="{{ object.id }}">
                                        <td><input type="checkbox" value="{{ object.id }}"  name="id"></td>
                                        <td class="center">{% url viewname_update object.id as obj_update %}
                                            <a href="{{ obj_update }}">{{ object.hostname }}</a>
                                        </td>
                                        <td class="center">{{ object.ip }}</td>
                                        <td class="center">{{ object.get_status_display }}</td>
                                        <td class="center">{{ object.changetime }}</td>
                                        <td>
                                            <!-- <a class="btn btn-xs btn-info " href="{% url 'cmdb:term' %}#web_ssh_{{ object.id }}" title="网页终端" target="_blank">终端</a> -->
                                            <!-- {% if object.port_rdp %}
                                            <a class="btn btn-xs btn-success " href="{% url 'cmdb:term' %}#web_rdp_{{ object.id }}" title="远程桌面" target="_blank">远程桌面</a>
                                            {% endif %} -->
                                            <a class="btn btn-danger btn-xs">删除</a>

                                        </td>
                                    </tr>
                                {% endfor %}

                                </tbody>

                            </table>

                        {% endblock %}


    {% block list_js %}
        {# 列表js #}
    {% endblock %}
